<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkFlows
 *
 * @ORM\Table(name="tk_flows", indexes={@ORM\Index(name="vccId", columns={"vcc_id"})})
 * @ORM\Entity
 */
class TkFlows
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="flow_name", type="string", length=100, nullable=false, options={"comment"="流程名称"})
     */
    private $flowName;

    /**
     * @var string
     *
     * @ORM\Column(name="flow_description", type="text", length=0, nullable=false, options={"comment"="说明"})
     */
    private $flowDescription;

    /**
     * @var int
     *
     * @ORM\Column(name="status", type="smallint", nullable=false, options={"comment"="流程状态（0未启用1启用2禁用）"})
     */
    private $status = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="ticket_no_format", type="string", length=100, nullable=false, options={"comment"="工单编号格式"})
     */
    private $ticketNoFormat;

    /**
     * @var int
     *
     * @ORM\Column(name="create_user_id", type="integer", nullable=false)
     */
    private $createUserId;

    /**
     * @var string
     *
     * @ORM\Column(name="create_user_name", type="string", length=30, nullable=false)
     */
    private $createUserName;

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false)
     */
    private $createTime;

    /**
     * @var int
     *
     * @ORM\Column(name="update_user_id", type="integer", nullable=false)
     */
    private $updateUserId;

    /**
     * @var string
     *
     * @ORM\Column(name="update_user_name", type="string", length=30, nullable=false)
     */
    private $updateUserName;

    /**
     * @var int
     *
     * @ORM\Column(name="update_time", type="integer", nullable=false)
     */
    private $updateTime;

    /**
     * @var int
     *
     * @ORM\Column(name="if_api_url", type="smallint", nullable=false, options={"comment"="是否开启初始化接口功能（0否 1是）"})
     */
    private $ifApiUrl = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="api_url", type="text", length=0, nullable=false, options={"comment"="初始化接口地址"})
     */
    private $apiUrl;

    /**
     * @var int
     *
     * @ORM\Column(name="api_method", type="smallint", nullable=false, options={"comment"="接口请求方法（0 GET、1 POST）"})
     */
    private $apiMethod = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="api_time_out", type="integer", nullable=false, options={"default"="1","comment"="接口请求超时时间（1、2、3、4、5、6、7、8、9、10，单位秒）"})
     */
    private $apiTimeOut = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_return_fields", type="text", length=0, nullable=false, options={"comment"="接口响应结果字段"})
     */
    private $apiReturnFields;

    /**
     * @var string
     *
     * @ORM\Column(name="api_params", type="text", length=0, nullable=false, options={"comment"="接口请求参数"})
     */
    private $apiParams;

    /**
     * @var string
     *
     * @ORM\Column(name="api_headers", type="text", length=0, nullable=false, options={"comment"="接口请求头"})
     */
    private $apiHeaders;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getFlowName(): ?string
    {
        return $this->flowName;
    }

    public function setFlowName(string $flowName): self
    {
        $this->flowName = $flowName;

        return $this;
    }

    public function getFlowDescription(): ?string
    {
        return $this->flowDescription;
    }

    public function setFlowDescription(string $flowDescription): self
    {
        $this->flowDescription = $flowDescription;

        return $this;
    }

    public function getStatus(): ?int
    {
        return $this->status;
    }

    public function setStatus(int $status): self
    {
        $this->status = $status;

        return $this;
    }

    public function getTicketNoFormat(): ?string
    {
        return $this->ticketNoFormat;
    }

    public function setTicketNoFormat(string $ticketNoFormat): self
    {
        $this->ticketNoFormat = $ticketNoFormat;

        return $this;
    }

    public function getCreateUserId(): ?int
    {
        return $this->createUserId;
    }

    public function setCreateUserId(int $createUserId): self
    {
        $this->createUserId = $createUserId;

        return $this;
    }

    public function getCreateUserName(): ?string
    {
        return $this->createUserName;
    }

    public function setCreateUserName(string $createUserName): self
    {
        $this->createUserName = $createUserName;

        return $this;
    }

    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    public function setCreateTime(int $createTime): self
    {
        $this->createTime = $createTime;

        return $this;
    }

    public function getUpdateUserId(): ?int
    {
        return $this->updateUserId;
    }

    public function setUpdateUserId(int $updateUserId): self
    {
        $this->updateUserId = $updateUserId;

        return $this;
    }

    public function getUpdateUserName(): ?string
    {
        return $this->updateUserName;
    }

    public function setUpdateUserName(string $updateUserName): self
    {
        $this->updateUserName = $updateUserName;

        return $this;
    }

    public function getUpdateTime(): ?int
    {
        return $this->updateTime;
    }

    public function setUpdateTime(int $updateTime): self
    {
        $this->updateTime = $updateTime;

        return $this;
    }

    public function getIfApiUrl(): ?int
    {
        return $this->ifApiUrl;
    }

    public function setIfApiUrl(int $ifApiUrl): self
    {
        $this->ifApiUrl = $ifApiUrl;

        return $this;
    }

    public function getApiUrl(): ?string
    {
        return $this->apiUrl;
    }

    public function setApiUrl(string $apiUrl): self
    {
        $this->apiUrl = $apiUrl;

        return $this;
    }

    public function getApiMethod(): ?int
    {
        return $this->apiMethod;
    }

    public function setApiMethod(int $apiMethod): self
    {
        $this->apiMethod = $apiMethod;

        return $this;
    }

    public function getApiTimeOut(): ?int
    {
        return $this->apiTimeOut;
    }

    public function setApiTimeOut(int $apiTimeOut): self
    {
        $this->apiTimeOut = $apiTimeOut;

        return $this;
    }

    public function getApiReturnFields(): ?string
    {
        return $this->apiReturnFields;
    }

    public function setApiReturnFields(string $apiReturnFields): self
    {
        $this->apiReturnFields = $apiReturnFields;

        return $this;
    }

    public function getApiParams(): ?string
    {
        return $this->apiParams;
    }

    public function setApiParams(string $apiParams): self
    {
        $this->apiParams = $apiParams;

        return $this;
    }

    public function getApiHeaders(): ?string
    {
        return $this->apiHeaders;
    }

    public function setApiHeaders(string $apiHeaders): self
    {
        $this->apiHeaders = $apiHeaders;

        return $this;
    }


}
